﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;


namespace LRSTaxServices.Common
{
	#region ViewEditMode

	/// <summary>
	/// Enumeration used to control the permitted operating mode(s) of UI pages and/or controls.
	/// </summary>
	[Flags]
	public enum ViewEditMode : int
	{
		None	= 0x00000000,

		View	= 0x00000001,
		Edit	= 0x00000002,
		Add		= 0x00000004,
		Delete	= 0x00000008,

		FullControl = View | Edit | Add | Delete
	}

	#endregion

	#region LayoutType

	/// <summary>
	/// The type of functionality that should be displayed on a particular Page or UserControl.
	/// </summary>
	public enum LayoutType
	{
		Search,
		Add,
		Edit
	}

	#endregion

	#region UpdateDirection

	/// <summary>
	/// Used to indicated whether a user control should move data from or to its DataSource(s).
	/// </summary>
	public enum UpdateDirection : int
	{
		Obj_To_UI,
		UI_To_Obj
	}

	#endregion
}
